package com.chentf.proxy;

import com.chentf.entity.User;
import com.chentf.struts2.service.UserService;
import com.chentf.struts2.service.impl.UserServiceImpl;

/**
 * @author chentengfei
 * @desc ...
 * @date 2021-01-16 15:54:10
 */
public class UserServiceProxy implements UserService {
    private UserServiceImpl userService = new UserServiceImpl();

    @Override
    public void register(User user) {
        System.out.println("----log----");
        userService.register(user);
    }

    @Override
    public boolean login(String name, String password) {
        System.out.println("----log----");
        return userService.login(name, password);
    }
}
